<#include "../../ajaxPage.ftl" />
<#include "../../display.ftl" />
<table class="table table-datatable table-gray">
    <input type="hidden" id="selectCardno" name="cardno"/>
    <input type="hidden" id="selectPackageName" name="packageName"/>
    <thead>
    <tr>

        <th>姓名</th>
        <th>卡别</th>
        <th>开卡日期</th>
        <th>结束日期</th>
        <th>性别</th>
        <th>电话</th>
        <th>身份证</th>
        <th>分管医生</th>
    </tr>
    </thead>
    <tbody>
    <#if vipXzbsTable.rows??>
        <#list vipXzbsTable.rows as vipXzb>
        <tr onclick="selectArow(this);">
            <td>${vipXzb.clientName!''}</td>
            <td>${vipXzb.packageName!''}</td>
            <td>${vipXzb.startTime!''}</td>
            <td>${vipXzb.endTime!''}</td>
            <td>${vipXzb.gender!''}</td>
            <td>${vipXzb.mobile!''}</td>
            <td>${vipXzb.cardno!''}</td>
            <td>${vipXzb.managementName!''}</td>

        </tr>
        </#list>
    </#if>
    </tbody>
</table>
<#if vipXzbsTable??>
    <@page table=vipXzbsTable formId="search_vipXzb_table" contentId="selectContent"/>
</#if>

<script>
    $(function () {
        $("table tbody tr").click(function () {
            $("table tbody tr").removeClass("active");
            $(this).addClass("active");
            var cardno = $(this).children("td:eq(6)").text();
            var packageName = $(this).children("td:eq(1)").text();
            if (cardno != "" && packageName != "") {
                $("#selectCardno").val(cardno);
                $("#selectPackageName").val(packageName);
            }
        });
    });
</script>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
</div>